package stackAndQueue;

/**
 * todo
 *
 * @author zhengshan
 * @Date 2023/1/9 17:46
 */
public class StackTest {

    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        System.out.println(myStack.isEmpty());
        System.out.println(myStack.push(2));
        System.out.println(myStack.push(4));
        System.out.println(myStack.push(7));
        System.out.println(myStack.length());
        System.out.println("--------------------------------------------");

        System.out.println(myStack.peek());
        System.out.println("--------------------------------------------");
        System.out.println(myStack.pop());
        System.out.println(myStack.peek());


        System.out.println(myStack.isEmpty());

    }
}
